package org.dxy.domain.model.aggregate.factory;

import org.dxy.domain.command.workorder.CreateWorkOrderCommand;
import org.dxy.domain.model.aggregate.WorkOrder;

/**
 * 工单工厂接口
 * @author dxy
 */
public interface WorkOrderFactory {
    
    /**
     * 创建工单聚合根
     * @param workOrderId 工单ID
     * @param command 创建工单命令
     * @return 工单聚合根
     */
    WorkOrder create(Long workOrderId, CreateWorkOrderCommand command);
}